function getUpdateAvatarInfo(){
	jQ.ajax({
		type: "POST",
		url: "controlAjax!getUpdateAvatorInfo.action",
		success:function(data){
			var mf;
			if (navigator.appName.indexOf('Microsoft') != -1) {
				mf=window['ModifiedAvatar_w'];
			} else {
				mf=document['ModifiedAvatar'];
			}
			mf.setData(data);
		}
	});
}

function startupload(){
	jQ("#loadingui").show();
}

function completeupload(){
	setTimeout(function(){
		jQ("#loadingui").hide();
		invitingOptReturnBox(jQ("#texttipzone"),"保存成功");
		setTimeout(function(){
			window.location.href=jQ("#ctxVal").val()+"/myclip/calendar.html";
			return true;
		},1000);
	},1500);
}

function invitingOptReturnBox(obj,content){
	var obj_box = jQ(obj);
	var obj_offset = obj_box.offset();
	var msg_box = jQ("#accept_msg_box");
	jQ("#accept_msg_box_content").empty().append(content);
	var _top = obj_offset.top - msg_box.outerHeight() - 90;
	var _left = obj_offset.left - msg_box.outerHeight()/2+20;
	msg_box.css({"top":_top+"px","left":_left+"px"}).show();
	msg_box.find("div.msg_note").animate({top: 20+'px'}, 500,function(){
		setTimeout(function(){
			msg_box.find("div.msg_note").animate({top: 100+'px'},500,function(){msg_box.hide();});
		},2000);
	});
}